<template>
  <Table :columns="tableColumns" :data="tableData" size="small" :height="height">
    <template #index="scope">
      {{ scope.index }}
    </template>
  </Table>
</template>

<script setup lang="ts">
const props = withDefaults(
  defineProps<{
    height?: string
  }>(),
  {}
)


const tableColumns = [
  {
    field: 'index',
    label: '序号',
    width: 60
  },
  {
    field: 'section',
    label: '段',
    width: 60,
  },
  {
    field: 'flightNo',
    label: '航班号',
  },
  {
    field: 'routeCode',
    label: '行程代码'
  },
  {
    field: 'routeName',
    label: '行程名称'
  },
  {
    field: 'settlementUnit',
    label: '结算单位',
  },
  {
    field: 'cateringStandard',
    label: '配餐标准',
  },
  {
    field: 'catering',
    label: '配餐',
    width: 80,
  },
  {
    field: 'aircraftSupply',
    label: '机供',
    width: 80,
  },
  {
    field: 'tmp',
    label: '临时',
    width: 80,
  },
  {
    field: 'serviceFee',
    label: '服务费'
  },
  {
    field:'serviceRemark',
    label: '服务备注'
  }
]

const tableData = ref([] as any[])

</script>